home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / CIncludes / SysEqu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-28  |  26.2 KB  |  464 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Friday, November 15, 1991 at 9:29 AM
  5.  SysEqu.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1985-1992
  10.   All rights reserved
  11.  
  12. *** Warning: This is an beta version of the Interfaces for Cube-E. 
  13. ***          Things may change.  Caveat Programmer.
  14.  
  15.  
  16. */
  17.  
  18.  
  19. #ifndef __SYSEQU__
  20. #define __SYSEQU__
  21.  
  22.  
  23. enum {
  24.  
  25.  PCDeskPat = 0x20B,                /*[GLOBAL VAR]  desktop pat, top bit only! others are in use*/
  26.  HiKeyLast = 0x216,                /*[GLOBAL VAR]  Same as KbdVars*/
  27.  KbdLast = 0x218,                /*[GLOBAL VAR]  Same as KbdVars+2*/
  28.  ExpandMem = 0x2B6,                /*[GLOBAL VAR]  pointer to expanded memory block*/
  29.  SCSIBase = 0x0C00,                /*[GLOBAL VAR]  (long) base address for SCSI chip read*/
  30.  SCSIDMA = 0x0C04,                /*[GLOBAL VAR]  (long) base address for SCSI DMA*/
  31.  SCSIHsk = 0x0C08,                /*[GLOBAL VAR]  (long) base address for SCSI handshake*/
  32.  SCSIGlobals = 0x0C0C,            /*[GLOBAL VAR]  (long) ptr for SCSI mgr locals*/
  33.  RGBBlack = 0x0C10,                /*[GLOBAL VAR]  (6 bytes) the black field for color*/
  34.  RGBWhite = 0x0C16,                /*[GLOBAL VAR]  (6 bytes) the white field for color*/
  35.  RowBits = 0x0C20,                /*[GLOBAL VAR]  (word) screen horizontal pixels*/
  36.  ColLines = 0x0C22,                /*[GLOBAL VAR]  (word) screen vertical pixels*/
  37.  ScreenBytes = 0x0C24,            /*[GLOBAL VAR]  (long) total screen bytes*/
  38.  NMIFlag = 0x0C2C,                /*[GLOBAL VAR]  (byte) flag for NMI debounce*/
  39.  VidType = 0x0C2D,                /*[GLOBAL VAR]  (byte) video board type ID*/
  40.  VidMode = 0x0C2E,                /*[GLOBAL VAR]  (byte) video mode (4=4bit color)*/
  41.  SCSIPoll = 0x0C2F,                /*[GLOBAL VAR]  (byte) poll for device zero only once.*/
  42.  SEVarBase = 0x0C30,            /*[GLOBAL VAR] */
  43.  MMUFlags = 0x0CB0,                /*[GLOBAL VAR]  (byte) cleared to zero (reserved for future use)*/
  44.  MMUType = 0x0CB1                /*[GLOBAL VAR]  (byte) kind of MMU present*/
  45. };
  46. enum {
  47.  MMU32bit = 0x0CB2,                /*[GLOBAL VAR]  (byte) boolean reflecting current machine MMU mode*/
  48.  MMUFluff = 0x0CB3,                /*[GLOBAL VAR]  (byte) fluff byte forced by reducing MMUMode to MMU32bit.*/
  49.  MMUTbl = 0x0CB4,                /*[GLOBAL VAR]  (long) pointer to MMU Mapping table*/
  50.  MMUTblSize = 0x0CB8,            /*[GLOBAL VAR]  (long) size of the MMU mapping table*/
  51.  SInfoPtr = 0x0CBC,                /*[GLOBAL VAR]  (long) pointer to Slot manager information*/
  52.  ASCBase = 0x0CC0,                /*[GLOBAL VAR]  (long) pointer to Sound Chip*/
  53.  SMGlobals = 0x0CC4,            /* (long) pointer to Sound Manager Globals*/
  54.  TheGDevice = 0x0CC8,            /*[GLOBAL VAR]  (long) the current graphics device*/
  55.  CQDGlobals = 0x0CCC,            /* (long) quickDraw global extensions*/
  56.  ADBBase = 0x0CF8,                /*[GLOBAL VAR]  (long) pointer to Front Desk Buss Variables*/
  57.  WarmStart = 0x0CFC,            /*[GLOBAL VAR]  (long) flag to indicate it is a warm start*/
  58.  TimeDBRA = 0x0D00,                /*[GLOBAL VAR]  (word) number of iterations of DBRA per millisecond*/
  59.  TimeSCCDB = 0x0D02,            /*[GLOBAL VAR]  (word) number of iter's of SCC access & DBRA.*/
  60.  SlotQDT = 0x0D04,                /*[GLOBAL VAR]  ptr to slot queue table*/
  61.  SlotPrTbl = 0x0D08,            /*[GLOBAL VAR]  ptr to slot priority table*/
  62.  SlotVBLQ = 0x0D0C,                /*[GLOBAL VAR]  ptr to slot VBL queue table*/
  63.  ScrnVBLPtr = 0x0D10,            /*[GLOBAL VAR]  save for ptr to main screen VBL queue*/
  64.  SlotTICKS = 0x0D14,            /*[GLOBAL VAR]  ptr to slot tickcount table*/
  65.  TableSeed = 0x0D20,            /*[GLOBAL VAR]  (long) seed value for color table ID's*/
  66.  SRsrcTblPtr = 0x0D24            /*[GLOBAL VAR]  (long) pointer to slot resource table.*/
  67. };
  68. enum {
  69.  JVBLTask = 0x0D28,                /*[GLOBAL VAR]  vector to slot VBL task interrupt handler*/
  70.  WMgrCPort = 0x0D2C,            /*[GLOBAL VAR]  window manager color port */
  71.  VertRRate = 0x0D30,            /*[GLOBAL VAR]  (word) Vertical refresh rate for start manager. */
  72.  ChunkyDepth = 0x0D60,            /*[GLOBAL VAR]  depth of the pixels*/
  73.  CrsrPtr = 0x0D62,                /*[GLOBAL VAR]  pointer to cursor save area*/
  74.  PortList = 0x0D66,                /*[GLOBAL VAR]  list of grafports*/
  75.  MickeyBytes = 0x0D6A,            /*[GLOBAL VAR]  long pointer to cursor stuff*/
  76.  QDErrLM = 0x0D6E,                /*[GLOBAL VAR] QDErr has name conflict w/ type. QuickDraw error code [word]*/
  77.  VIA2DT = 0x0D70,                /*[GLOBAL VAR]  32 bytes for VIA2 dispatch table for NuMac*/
  78.  SInitFlags = 0x0D90,            /*[GLOBAL VAR]  StartInit.a flags [word]*/
  79.  DTQueue = 0x0D92,                /*[GLOBAL VAR]  (10 bytes) deferred task queue header*/
  80.  DTQFlags = 0x0D92,                /*[GLOBAL VAR]  flag word for DTQueue*/
  81.  DTskQHdr = 0x0D94,                /*[GLOBAL VAR]  ptr to head of queue*/
  82.  DTskQTail = 0x0D98,            /*[GLOBAL VAR]  ptr to tail of queue*/
  83.  JDTInstall = 0x0D9C,            /*[GLOBAL VAR]  (long) ptr to deferred task install routine*/
  84.  HiliteRGB = 0x0DA0,            /*[GLOBAL VAR]  6 bytes: rgb of hilite color*/
  85.  TimeSCSIDB = 0x0B24,            /*[GLOBAL VAR]  (word) number of iter's of SCSI access & DBRA*/
  86.  DSCtrAdj = 0x0DA8,                /*[GLOBAL VAR]  (long) Center adjust for DS rect.*/
  87.  IconTLAddr = 0x0DAC,            /*[GLOBAL VAR]  (long) pointer to where start icons are to be put.*/
  88.  VideoInfoOK = 0x0DB0            /*[GLOBAL VAR]  (long) Signals to CritErr that the Video card is ok*/
  89. };
  90. enum {
  91.  EndSRTPtr = 0x0DB4,            /*[GLOBAL VAR]  (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).*/
  92.  SDMJmpTblPtr = 0x0DB8,            /*[GLOBAL VAR]  (long) Pointer to the SDM jump table*/
  93.  JSwapMMU = 0x0DBC,                /*[GLOBAL VAR]  (long) jump vector to SwapMMU routine*/
  94.  SdmBusErr = 0x0DC0,            /*[GLOBAL VAR]  (long) Pointer to the SDM busErr handler*/
  95.  LastTxGDevice = 0x0DC4,        /*[GLOBAL VAR]  (long) copy of TheGDevice set up for fast text measure*/
  96.  NewCrsrJTbl = 0x88C,            /*[GLOBAL VAR]  location of new crsr jump vectors*/
  97.  JAllocCrsr = 0x88C,            /*[GLOBAL VAR]  (long) vector to routine that allocates cursor*/
  98.  JSetCCrsr = 0x890,                /*[GLOBAL VAR]  (long) vector to routine that sets color cursor*/
  99.  JOpcodeProc = 0x894,            /*[GLOBAL VAR]  (long) vector to process new picture opcodes*/
  100.  CrsrBase = 0x898,                /*[GLOBAL VAR]  (long) scrnBase for cursor*/
  101.  CrsrDevice = 0x89C,            /*[GLOBAL VAR]  (long) current cursor device*/
  102.  SrcDevice = 0x8A0,                /*[GLOBAL VAR]  (LONG) Src device for Stretchbits*/
  103.  MainDevice = 0x8A4,            /*[GLOBAL VAR]  (long) the main screen device*/
  104.  DeviceList = 0x8A8,            /*[GLOBAL VAR]  (long) list of display devices*/
  105.  CrsrRow = 0x8AC,                /*[GLOBAL VAR]  (word) rowbytes for current cursor screen*/
  106.  QDColors = 0x8B0,                /*[GLOBAL VAR]  (long) handle to default colors*/
  107.  HiliteMode = 0x938,            /*[GLOBAL VAR]  used for color highlighting*/
  108.  BusErrVct = 0x08,                /*[GLOBAL VAR]  bus error vector*/
  109.  RestProc = 0xA8C,                /*[GLOBAL VAR]  Resume procedure f InitDialogs [pointer]*/
  110.  ROM85 = 0x28E                    /*[GLOBAL VAR]  (word) actually high bit - 0 for ROM vers $75 (sic) and later*/
  111. };
  112. enum {
  113.  ROMMapHndl = 0xB06,            /*[GLOBAL VAR]  (long) handle of ROM resource map*/
  114.  ScrVRes = 0x102,                /*[GLOBAL VAR] Pixels per inch vertically (word)
  115.    screen vertical dots/inch [word]*/
  116.  ScrHRes = 0x104,                /*[GLOBAL VAR] Pixels per inch horizontally (word)
  117.    screen horizontal dots/inch [word]*/
  118.  ScrnBase = 0x824,                /*[GLOBAL VAR] Address of main screen buffer
  119.    Screen Base [pointer]*/
  120.  ScreenRow = 0x106,                /*[GLOBAL VAR]  rowBytes of screen [word]*/
  121.  MBTicks = 0x16E,                /*[GLOBAL VAR]  tick count @ last mouse button [long]*/
  122.  JKybdTask = 0x21A,                /*[GLOBAL VAR]  keyboard VBL task hook [pointer]*/
  123.  KeyLast = 0x184,                /*[GLOBAL VAR]  ASCII for last valid keycode [word]*/
  124.  KeyTime = 0x186,                /*[GLOBAL VAR]  tickcount when KEYLAST was rec'd [long]*/
  125.  KeyRepTime = 0x18A,            /*[GLOBAL VAR]  tickcount when key was last repeated [long]*/
  126.  SPConfig = 0x1FB,                /*[GLOBAL VAR] Use types for serial ports (byte)
  127.    config bits: 4-7 A, 0-3 B (see use type below)*/
  128.  SPPortA = 0x1FC,                /*[GLOBAL VAR] Modem port configuration (word)
  129.    SCC port A configuration [word]*/
  130.  SPPortB = 0x1FE,                /*[GLOBAL VAR] Printer port configuration (word)
  131.    SCC port B configuration [word]*/
  132.  SCCRd = 0x1D8,                    /*[GLOBAL VAR] SCC read base address
  133.    SCC base read address [pointer]*/
  134.  SCCWr = 0x1DC,                    /*[GLOBAL VAR] SCC write base address
  135.    SCC base write address [pointer]*/
  136.  DoubleTime = 0x2F0,            /*[GLOBAL VAR] Double-click interval in ticks (long)
  137.    double click ticks [long]*/
  138.  CaretTime = 0x2F4,                /*[GLOBAL VAR] Caret-blink interval in ticks (long)
  139.    caret blink ticks [long]*/
  140.  KeyThresh = 0x18E,                /*[GLOBAL VAR] Auto-key threshold (word)
  141.    threshold for key repeat [word]*/
  142.  KeyRepThresh = 0x190,            /*[GLOBAL VAR] Auto-key rate (word)
  143.    key repeat speed [word]*/
  144.  SdVolume = 0x260                /*[GLOBAL VAR] Current speaker volume (byte:  low-order three bits only)
  145.    Global volume(sound) control [byte]*/
  146. };
  147. enum {
  148.  Ticks = 0x16A,                    /*[GLOBAL VAR] Current number of ticks since system startup (long)
  149.    Tick count, time since boot [unsigned long]*/
  150.  TimeLM = 0x20C,                /*[GLOBAL VAR] Time has name conflict w/ type. Clock time (extrapolated) [long]*/
  151.  MonkeyLives = 0x100,            /*[GLOBAL VAR]  monkey lives if >= 0 [word]*/
  152.  SEvtEnb = 0x15C,                /*[GLOBAL VAR] 0 if SystemEvent should return FALSE (byte)
  153.    enable SysEvent calls from GNE [byte]*/
  154.  JournalFlag = 0x8DE,            /*[GLOBAL VAR] Journaling mode (word)
  155.    journaling state [word]*/
  156.  JournalRef = 0x8E8,            /*[GLOBAL VAR] Reference number of journaling device driver (word)
  157.    Journalling driver's refnum [word]*/
  158.  BufPtr = 0x10C,                /*[GLOBAL VAR] Address of end of jump table
  159.    top of application memory [pointer]*/
  160.  StkLowPt = 0x110,                /*[GLOBAL VAR]  Lowest stack as measured in VBL task [pointer]*/
  161.  TheZone = 0x118,                /*[GLOBAL VAR] Address of current heap zone
  162.    current heap zone [pointer]*/
  163.  ApplLimit = 0x130,                /*[GLOBAL VAR] Application heap limit
  164.    application limit [pointer]*/
  165.  SysZone = 0x2A6,                /*[GLOBAL VAR] Address of system heap zone
  166.    system heap zone [pointer]*/
  167.  ApplZone = 0x2AA,                /*[GLOBAL VAR] Address of application heap zone
  168.    application heap zone [pointer]*/
  169.  HeapEnd = 0x114,                /*[GLOBAL VAR] Address of end of application heap zone
  170.    end of heap [pointer]*/
  171.  HiHeapMark = 0xBAE,            /*[GLOBAL VAR]  (long) highest address used by a zone below sp<01Nov85 JTC>*/
  172.  MemErr = 0x220,                /*[GLOBAL VAR]  last memory manager error [word]*/
  173.  UTableBase = 0x11C,            /*[GLOBAL VAR] Base address of unit table
  174.    unit I/O table [pointer]*/
  175.  UnitNtryCnt = 0x1D2,            /*[GLOBAL VAR]  count of entries in unit table [word]*/
  176.  JFetch = 0x8F4,                /*[GLOBAL VAR] Jump vector for Fetch function
  177.    fetch a byte routine for drivers [pointer]*/
  178.  JStash = 0x8F8,                /*[GLOBAL VAR] Jump vector for Stash function
  179.    stash a byte routine for drivers [pointer]*/
  180.  JIODone = 0x8FC                /*[GLOBAL VAR] Jump vector for IODone function
  181.    IODone entry location [pointer]*/
  182. };
  183. enum {
  184.  DrvQHdr = 0x308,                /*[GLOBAL VAR] Drive queue header (10 bytes)
  185.    queue header of drives in system [10 bytes]*/
  186.  BootDrive = 0x210,                /*[GLOBAL VAR]  drive number of boot drive [word]*/
  187.  EjectNotify = 0x338,            /*[GLOBAL VAR]  eject notify procedure [pointer]*/
  188.  IAZNotify = 0x33C,                /*[GLOBAL VAR]  world swaps notify procedure [pointer]*/
  189.  SFSaveDisk = 0x214,            /*[GLOBAL VAR] Negative of volume reference number used by Standard File Package (word)
  190.    last vRefNum seen by standard file [word]*/
  191.  CurDirStore = 0x398,            /*[GLOBAL VAR]  save dir across calls to Standard File [long]*/
  192.  OneOne = 0xA02,                /*[GLOBAL VAR] $00010001
  193.    constant $00010001 [long]*/
  194.  MinusOne = 0xA06,                /*[GLOBAL VAR] $FFFFFFFF
  195.    constant $FFFFFFFF [long]*/
  196.  Lo3Bytes = 0x31A,                /*[GLOBAL VAR] $00FFFFFF
  197.    constant $00FFFFFF [long]*/
  198.  ROMBase = 0x2AE,                /*[GLOBAL VAR] Base address of ROM
  199.    ROM base address [pointer]*/
  200.  RAMBase = 0x2B2,                /*[GLOBAL VAR] Trap dispatch table's base address for routines in RAM
  201.    RAM base address [pointer]*/
  202.  SysVersion = 0x15A,            /*[GLOBAL VAR]  version # of RAM-based system [word]*/
  203.  RndSeed = 0x156,                /*[GLOBAL VAR] Random number seed (long)
  204.    random seed/number [long]*/
  205.  Scratch20 = 0x1E4,                /*[GLOBAL VAR] 20-byte scratch area
  206.    scratch [20 bytes]*/
  207.  Scratch8 = 0x9FA,                /*[GLOBAL VAR] 8-byte scratch area
  208.    scratch [8 bytes]*/
  209.  ToolScratch = 0x9CE,            /*[GLOBAL VAR] 8-byte scratch area
  210.    scratch [8 bytes]*/
  211.  ApplScratch = 0xA78,            /*[GLOBAL VAR] 12-byte application scratch area
  212.    scratch [12 bytes]*/
  213.  ScrapSize = 0x960,                /*[GLOBAL VAR] Size in bytes of desk scrap (long)
  214.    scrap length [long]*/
  215.  ScrapHandle = 0x964,            /*[GLOBAL VAR] Handle to desk scrap in memory
  216.    memory scrap [handle]*/
  217.  ScrapCount = 0x968                /*[GLOBAL VAR] Count changed by ZeroScrap (word)
  218.    validation byte [word]*/
  219. };
  220. enum {
  221.  ScrapState = 0x96A,            /*[GLOBAL VAR] Tells where desk scrap is (word)
  222.    scrap state [word]*/
  223.  ScrapName = 0x96C,                /*[GLOBAL VAR] Pointer to scrap file name (preceded by length byte)
  224.    pointer to scrap name [pointer]*/
  225.  IntlSpec = 0xBA0,                /*[GLOBAL VAR]  (long) - ptr to extra Intl data */
  226.  SwitcherTPtr = 0x286,            /*[GLOBAL VAR]  Switcher's switch table */
  227.  CPUFlag = 0x12F,                /*[GLOBAL VAR]  $00=68000, $01=68010, $02=68020 (old ROM inits to $00)*/
  228.  VIA = 0x1D4,                    /*[GLOBAL VAR] VIA base address
  229.    VIA base address [pointer]*/
  230.  IWM = 0x1E0,                    /*[GLOBAL VAR]  IWM base address [pointer]*/
  231.  Lvl1DT = 0x192,                /*[GLOBAL VAR] Level-1 secondary interrupt vector table (32 bytes)
  232.    Interrupt level 1 dispatch table [32 bytes]*/
  233.  Lvl2DT = 0x1B2,                /*[GLOBAL VAR] Level-2 secondary interrupt vector table (32 bytes)
  234.    Interrupt level 2 dispatch table [32 bytes]*/
  235.  ExtStsDT = 0x2BE,                /*[GLOBAL VAR] External/status interrupt vector table (16 bytes)
  236.    SCC ext/sts secondary dispatch table [16 bytes]*/
  237.  SPValid = 0x1F8,                /*[GLOBAL VAR] Validity status (byte)
  238.    validation field ($A7) [byte]*/
  239.  SPATalkA = 0x1F9,                /*[GLOBAL VAR] AppleTalk node ID hint for modem port (byte)
  240.    AppleTalk node number hint for port A*/
  241.  SPATalkB = 0x1FA,                /*[GLOBAL VAR] AppleTalk node ID hint for printer port (byte)
  242.    AppleTalk node number hint for port B*/
  243.  SPAlarm = 0x200,                /*[GLOBAL VAR] Alarm setting (long)
  244.    alarm time [long]*/
  245.  SPFont = 0x204,                /*[GLOBAL VAR] Application font number minus 1 (word)
  246.    default application font number minus 1 [word]*/
  247.  SPKbd = 0x206,                    /*[GLOBAL VAR] Auto-key threshold and rate (byte)
  248.    kbd repeat thresh in 4/60ths [2 4-bit]*/
  249.  SPPrint = 0x207,                /*[GLOBAL VAR] Printer connection (byte)
  250.    print stuff [byte]*/
  251.  SPVolCtl = 0x208,                /*[GLOBAL VAR] Speaker volume setting in parameter RAM (byte)
  252.    volume control [byte]*/
  253.  SPClikCaret = 0x209,            /*[GLOBAL VAR] Double-click and caret-blink times (byte)
  254.    double click/caret time in 4/60ths[2 4-bit]*/
  255.  SPMisc1 = 0x20A                /*[GLOBAL VAR]  miscellaneous [1 byte]*/
  256. };
  257. enum {
  258.  SPMisc2 = 0x20B,                /*[GLOBAL VAR] Mouse scaling, system startup disk, menu blink (byte)
  259.    miscellaneous [1 byte]*/
  260.  GetParam = 0x1E4,                /*[GLOBAL VAR]  system parameter scratch [20 bytes]*/
  261.  SysParam = 0x1F8,                /*[GLOBAL VAR] Low-memory copy of parameter RAM (20 bytes)
  262.    system parameter memory [20 bytes]*/
  263.  CrsrThresh = 0x8EC,            /*[GLOBAL VAR] Mouse-scaling threshold (word) 
  264.    delta threshold for mouse scaling [word]*/
  265.  JCrsrTask = 0x8EE,                /*[GLOBAL VAR]  address of CrsrVBLTask [long]*/
  266.  MTemp = 0x828,                    /*[GLOBAL VAR]  Low-level interrupt mouse location [long]*/
  267.  RawMouse = 0x82C,                /*[GLOBAL VAR]  un-jerked mouse coordinates [long]*/
  268.  CrsrRect = 0x83C,                /*[GLOBAL VAR]  Cursor hit rectangle [8 bytes]*/
  269.  TheCrsr = 0x844,                /*[GLOBAL VAR]  Cursor data, mask & hotspot [68 bytes]*/
  270.  CrsrAddr = 0x888,                /*[GLOBAL VAR]  Address of data under cursor [long]*/
  271.  CrsrSave = 0x88C,                /*[GLOBAL VAR]  data under the cursor [64 bytes]*/
  272.  CrsrVis = 0x8CC,                /*[GLOBAL VAR]  Cursor visible? [byte]*/
  273.  CrsrBusy = 0x8CD,                /*[GLOBAL VAR]  Cursor locked out? [byte]*/
  274.  CrsrNew = 0x8CE,                /*[GLOBAL VAR]  Cursor changed? [byte]*/
  275.  CrsrState = 0x8D0,                /*[GLOBAL VAR]  Cursor nesting level [word]*/
  276.  CrsrObscure = 0x8D2,            /*[GLOBAL VAR]  Cursor obscure semaphore [byte]*/
  277.  KbdVars = 0x216,                /*[GLOBAL VAR]  Keyboard manager variables [4 bytes]*/
  278.  KbdType = 0x21E,                /*[GLOBAL VAR]  keyboard model number [byte]*/
  279.  MBState = 0x172,                /*[GLOBAL VAR]  current mouse button state [byte]*/
  280.  KeyMapLM = 0x174                /*[GLOBAL VAR] KeyMap has name conflict w/ type. Bitmap of the keyboard [4 longs]*/
  281. };
  282. enum {
  283.  KeypadMap = 0x17C,                /*[GLOBAL VAR]  bitmap for numeric pad-18bits [long]*/
  284.  Key1Trans = 0x29E,                /*[GLOBAL VAR]  keyboard translator procedure [pointer]*/
  285.  Key2Trans = 0x2A2,                /*[GLOBAL VAR]  numeric keypad translator procedure [pointer]*/
  286.  JGNEFilter = 0x29A,            /*[GLOBAL VAR]  GetNextEvent filter proc [pointer]*/
  287.  KeyMVars = 0xB04,                /*[GLOBAL VAR]  (word) for ROM KEYM proc state*/
  288.  Mouse = 0x830,                    /*[GLOBAL VAR]  processed mouse coordinate [long]*/
  289.  CrsrPin = 0x834,                /*[GLOBAL VAR]  cursor pinning rectangle [8 bytes]*/
  290.  CrsrCouple = 0x8CF,            /*[GLOBAL VAR]  cursor coupled to mouse? [byte]*/
  291.  CrsrScale = 0x8D3,                /*[GLOBAL VAR]  cursor scaled? [byte]*/
  292.  MouseMask = 0x8D6,                /*[GLOBAL VAR]  V-H mask for ANDing with mouse [long]*/
  293.  MouseOffset = 0x8DA,            /*[GLOBAL VAR]  V-H offset for adding after ANDing [long]*/
  294.  AlarmState = 0x21F,            /*[GLOBAL VAR]  Bit7=parity, Bit6=beeped, Bit0=enable [byte]*/
  295.  VBLQueue = 0x160,                /*[GLOBAL VAR] Vertical retrace queue header (10 bytes)
  296.    VBL queue header [10 bytes]*/
  297.  SysEvtMask = 0x144,            /*[GLOBAL VAR] System event mask (word)
  298.    system event mask [word]*/
  299.  SysEvtBuf = 0x146,                /*[GLOBAL VAR]  system event queue element buffer [pointer]*/
  300.  EventQueue = 0x14A,            /*[GLOBAL VAR] Event queue header (10 bytes)
  301.    event queue header [10 bytes]*/
  302.  EvtBufCnt = 0x154,                /*[GLOBAL VAR]  max number of events in SysEvtBuf - 1 [word]*/
  303.  GZRootHnd = 0x328,                /*[GLOBAL VAR] Handle to relocatable block not to be moved by grow zone function
  304.    root handle for GrowZone [handle]*/
  305.  GZRootPtr = 0x32C,                /*[GLOBAL VAR]  root pointer for GrowZone [pointer]*/
  306.  GZMoveHnd = 0x330                /*[GLOBAL VAR]  moving handle for GrowZone [handle]*/
  307. };
  308. enum {
  309.  MemTop = 0x108,                /*[GLOBAL VAR] Address of end of RAM (on Macintosh XL, end of RAM available to applications)
  310.    top of memory [pointer]*/
  311.  MmInOK = 0x12E,                /*[GLOBAL VAR]  initial memory mgr checks ok? [byte]*/
  312.  HpChk = 0x316,                    /*[GLOBAL VAR]  heap check RAM code [pointer]*/
  313.  MaskBC = 0x31A,                /*[GLOBAL VAR]  Memory Manager Byte Count Mask [long]*/
  314.  MaskHandle = 0x31A,            /*[GLOBAL VAR]  Memory Manager Handle Mask [long]*/
  315.  MaskPtr = 0x31A,                /*[GLOBAL VAR]  Memory Manager Pointer Mask [long]*/
  316.  MinStack = 0x31E,                /*[GLOBAL VAR] Minimum space allotment for stack (long)
  317.    min stack size used in InitApplZone [long]*/
  318.  DefltStack = 0x322,            /*[GLOBAL VAR] Default space allotment for stack (long) 
  319.    default size of stack [long]*/
  320.  MMDefFlags = 0x326,            /*[GLOBAL VAR]  default zone flags [word]*/
  321.  DSAlertTab = 0x2BA,            /*[GLOBAL VAR] Pointer to system error alert table in use
  322.    system error alerts [pointer]*/
  323.  DSAlertRect = 0x3F8,            /*[GLOBAL VAR] Rectangle enclosing system error alert (8 bytes)
  324.    rectangle for disk-switch alert [8 bytes]*/
  325.  DSDrawProc = 0x334,            /*[GLOBAL VAR]  alternate syserror draw procedure [pointer]*/
  326.  DSWndUpdate = 0x15D,            /*[GLOBAL VAR]  GNE not to paintBehind DS AlertRect? [byte]*/
  327.  WWExist = 0x8F2,                /*[GLOBAL VAR]  window manager initialized? [byte]*/
  328.  QDExist = 0x8F3,                /*[GLOBAL VAR]  quickdraw is initialized [byte]*/
  329.  ResumeProc = 0xA8C,            /*[GLOBAL VAR] Address of resume procedure
  330.    Resume procedure from InitDialogs [pointer]*/
  331.  DSErrCode = 0xAF0,                /*[GLOBAL VAR] Current system error ID (word)
  332.    last system error alert ID*/
  333.  IntFlag = 0x15F,                /*[GLOBAL VAR]  reduce interrupt disable time when bit 7 = 0*/
  334.  SerialVars = 0x2D0,            /*[GLOBAL VAR]  async driver variables [16 bytes]*/
  335.  ABusVars = 0x2D8                /*[GLOBAL VAR] Pointer to AppleTalk variables
  336.   ;Pointer to AppleTalk local variables*/
  337. };
  338. enum {
  339.  ABusDCE = 0x2DC,                /*[GLOBAL VAR] ;Pointer to AppleTalk DCE*/
  340.  PortAUse = 0x290,                /*[GLOBAL VAR]  bit 7: 1 = not in use, 0 = in use*/
  341.  PortBUse = 0x291,                /*[GLOBAL VAR] Current availability of serial port B (byte)
  342.    port B use, same format as PortAUse*/
  343.  SCCASts = 0x2CE,                /*[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - A [byte]*/
  344.  SCCBSts = 0x2CF,                /*[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - B [byte]*/
  345.  DskErr = 0x142,                /*[GLOBAL VAR]  disk routine result code [word]*/
  346.  PWMBuf2 = 0x312,                /*[GLOBAL VAR]  PWM buffer 1 (or 2 if sound) [pointer]*/
  347.  SoundPtr = 0x262,                /*[GLOBAL VAR] Pointer to four-tone record
  348.    4VE sound definition table [pointer]*/
  349.  SoundBase = 0x266,                /*[GLOBAL VAR] Pointer to free-form synthesizer buffer
  350.    sound bitMap [pointer]*/
  351.  SoundVBL = 0x26A,                /*[GLOBAL VAR]  vertical retrace control element [16 bytes]*/
  352.  SoundDCE = 0x27A,                /*[GLOBAL VAR]  sound driver DCE [pointer]*/
  353.  SoundActive = 0x27E,            /*[GLOBAL VAR]  sound is active? [byte]*/
  354.  SoundLevel = 0x27F,            /*[GLOBAL VAR] Amplitude in 740-byte buffer (byte)
  355.    current level in buffer [byte]*/
  356.  CurPitch = 0x280,                /*[GLOBAL VAR] Value of count in square-wave synthesizer buffer (word)
  357.    current pitch value [word]*/
  358.  DskVerify = 0x12C,                /*[GLOBAL VAR]  used by 3.5 disk driver for read/verify [byte]*/
  359.  TagData = 0x2FA,                /*[GLOBAL VAR]  sector tag info for disk drivers [14 bytes]*/
  360.  BufTgFNum = 0x2FC,                /*[GLOBAL VAR] File tags buffer:  file number (long)
  361.    file number [long]*/
  362.  BufTgFFlg = 0x300,                /*[GLOBAL VAR] File tags buffer:  flags (word:  bit 1=1 if resource fork) 
  363.    flags [word]*/
  364.  BufTgFBkNum = 0x302,            /*[GLOBAL VAR] File tags buffer:  logical block number (word)
  365.    logical block number [word]*/
  366.  BufTgDate = 0x304                /*[GLOBAL VAR] File tags buffer:  date and time of last modification (long)
  367.    time stamp [word]*/
  368. };
  369. enum {
  370.  ScrDmpEnb = 0x2F8,                /*[GLOBAL VAR] 0 if GetNextEvent shouldn't process Command-Shift-number combinations (byte)
  371.    screen dump enabled? [byte]*/
  372.  ScrDmpType = 0x2F9,            /*[GLOBAL VAR]  FF dumps screen, FE dumps front window [byte]*/
  373.  ScrapVars = 0x960,                /*[GLOBAL VAR]  scrap manager variables [32 bytes]*/
  374.  ScrapInfo = 0x960,                /*[GLOBAL VAR]  scrap length [long]*/
  375.  ScrapEnd = 0x980,                /*[GLOBAL VAR]  end of scrap vars*/
  376.  ScrapTag = 0x970,                /*[GLOBAL VAR]  scrap file name [STRING[15]]*/
  377.  LaunchFlag = 0x902,            /*[GLOBAL VAR]  from launch or chain [byte]*/
  378.  SaveSegHandle = 0x930,            /*[GLOBAL VAR]  seg 0 handle [handle]*/
  379.  CurJTOffset = 0x934,            /*[GLOBAL VAR] Offset to jump table from location pointed to by A5 (word)
  380.    current jump table offset [word]*/
  381.  CurPageOption = 0x936,            /*[GLOBAL VAR] Sound/screen buffer configuration passed to Chain or Launch (word)
  382.    current page 2 configuration [word]*/
  383.  LoaderPBlock = 0x93A,            /*[GLOBAL VAR]  param block for ExitToShell [10 bytes]*/
  384.  CurApRefNum = 0x900,            /*[GLOBAL VAR] Reference number of current application's resource file (word)
  385.    refNum of application's resFile [word]*/
  386.  CurrentA5 = 0x904,                /*[GLOBAL VAR] Address of boundary between application globals and application parameters
  387.    current value of A5 [pointer]*/
  388.  CurStackBase = 0x908,            /*[GLOBAL VAR] Address of base of stack; start of application globals
  389.    current stack base [pointer]*/
  390.  CurApName = 0x910,                /*[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
  391.    name of application [STRING[31]]*/
  392.  LoadTrap = 0x12D,                /*[GLOBAL VAR]  trap before launch? [byte]*/
  393.  SegHiEnable = 0xBB2,            /*[GLOBAL VAR]  (byte) 0 to disable MoveHHi in LoadSeg*/
  394.  
  395. /* Window Manager Globals */
  396.  WindowList = 0x9D6,            /*[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
  397.   Z-ordered linked list of windows [pointer]*/
  398.  PaintWhite = 0x9DC,            /*[GLOBAL VAR] Flag for whether to paint window white before update event (word)
  399.   erase newly drawn windows? [word]*/
  400.  WMgrPort = 0x9DE                /*[GLOBAL VAR] Pointer to Window Manager port 
  401.   window manager's grafport [pointer]*/
  402. };
  403. enum {
  404.  GrayRgn = 0x9EE,                /*[GLOBAL VAR] Handle to region drawn as desktop
  405.   rounded gray desk region [handle]*/
  406.  CurActivate = 0xA64,            /*[GLOBAL VAR] Pointer to window to receive activate event
  407.   window slated for activate event [pointer]*/
  408.  CurDeactive = 0xA68,            /*[GLOBAL VAR] Pointer to window to receive deactivate event
  409.   window slated for deactivate event [pointer]*/
  410.  DragHook = 0x9F6,                /*[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
  411.   user hook during dragging [pointer]*/
  412.  DeskPattern = 0xA3C,            /*[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
  413.   desk pattern [8 bytes]*/
  414.  DeskHook = 0xA6C,                /*[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
  415.   hook for painting the desk [pointer]*/
  416.  GhostWindow = 0xA84,            /*[GLOBAL VAR] Pointer to window never to be considered frontmost
  417.   window hidden from FrontWindow [pointer]*/
  418.  
  419. /* Text Edit Globals */
  420.  TEDoText = 0xA70,                /*[GLOBAL VAR] Address of TextEdit multi-purpose routine
  421.   textEdit doText proc hook [pointer]*/
  422.  TERecal = 0xA74,                /*[GLOBAL VAR] Address of routine to recalculate line starts for TextEdit
  423.   textEdit recalText proc hook [pointer]*/
  424.  TEScrpLength = 0xAB0,            /*[GLOBAL VAR] Size in bytes of TextEdit scrap (long)
  425.   textEdit Scrap Length [word]*/
  426.  TEScrpHandle = 0xAB4,            /*[GLOBAL VAR] Handle to TextEdit scrap
  427.   textEdit Scrap [handle]*/
  428.  TEWdBreak = 0xAF6,                /*[GLOBAL VAR] default word break routine [pointer]*/
  429.  WordRedraw = 0xBA5,            /*[GLOBAL VAR] (byte) - used by TextEdit RecalDraw*/
  430.  TESysJust = 0xBAC,                /*[GLOBAL VAR] (word) system justification (intl. textEdit)*/
  431.  
  432. /* Resource Manager Globals */
  433.  TopMapHndl = 0xA50,            /*[GLOBAL VAR] Handle to resource map of most recently opened resource file
  434.   topmost map in list [handle]*/
  435.  SysMapHndl = 0xA54,            /*[GLOBAL VAR] Handle to map of system resource file
  436.   system map [handle]*/
  437.  SysMap = 0xA58,                /*[GLOBAL VAR] Reference number of system resource file (word)
  438.   reference number of system map [word]*/
  439.  CurMap = 0xA5A,                /*[GLOBAL VAR] Reference number of current resource file (word) 
  440.   reference number of current map [word]*/
  441.  ResReadOnly = 0xA5C,            /*[GLOBAL VAR] Read only flag [word]*/
  442.  ResLoad = 0xA5E                /*[GLOBAL VAR] Current SetResLoad state (word)
  443.   Auto-load feature [word]*/
  444. };
  445. enum {
  446.  ResErr = 0xA60,                /*[GLOBAL VAR] Current value of ResError (word)
  447.   Resource error code [word]*/
  448.  ResErrProc = 0xAF2,            /*[GLOBAL VAR] Address of resource error procedure
  449.   Resource error procedure [pointer]*/
  450.  SysResName = 0xAD8,            /*[GLOBAL VAR] Name of system resource file (length byte followed by up to 19 characters)
  451.   Name of system resource file [STRING[19]]*/
  452.  RomMapInsert = 0xB9E,            /*[GLOBAL VAR] (byte) determines if we should link in map*/
  453.  TmpResLoad = 0xB9F,            /*[GLOBAL VAR] second byte is temporary ResLoad value.*/
  454.  
  455. /* Menu Mgr globals */
  456.  MBarHeight = 0xBAA,            /*[GLOBAL VAR] height of the menu bar*/
  457.  
  458. /* CommToolbox Global */
  459.  CommToolboxGlobals = 0x0BB4    /*[GLOBAL VAR] pointer to CommToolbox globals */
  460. };
  461.  
  462.  
  463. #endif
  464.